package com.lkd.http.controller;

import com.lkd.feign.VmServiceFeignClient;
import com.lkd.vo.SkuVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class VmController {

    @Autowired
    private VmServiceFeignClient vmServiceFeignClient;

    @GetMapping("/vm/skuList/{innerCode}")
    public List<SkuVO> getSkuList(@PathVariable(name = "innerCode")String innerCode){
        return vmServiceFeignClient.getSkuListByInnerCode(innerCode);
    }
}
